package com.pacai.this_;

/**
 * @author pacai
 * @version 1.0
 */
public class This01 {
    public static void main(String[] args) {
        Dog dog = new Dog("相望", 10);
        System.out.println(dog.hashCode());
        dog.info();
    }
}


class Dog{
    String name;
    int age;
    public Dog(String name,int age){
        this.name = name;
        this.age = age;
        System.out.println(this.hashCode());
    }

    public void info(){
        System.out.println(this.hashCode());
        System.out.println(name + " " + age);
    }
}
